package br.com.nooclix.salon.application.impl;

import java.util.List;

import br.com.nooclix.salon.application.PersonApplication;
import br.com.nooclix.salon.domain.person.City;
import br.com.nooclix.salon.domain.person.PersonRepository;
import br.com.nooclix.salon.domain.person.State;

public class PersonApplicationImpl implements PersonApplication {

	private PersonRepository personRepository;

	public PersonApplicationImpl(PersonRepository personRepository) {
		super();
		this.personRepository = personRepository;
	}

	@Override
	public List<City> findCitiesByState(State state) {

		return personRepository.findCitiesByState(state);
	}

	@Override
	public List<State> listState() {
		return personRepository.listState();
	}

}
